package com.lianyu507.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * =================================
 * <p>
 * Created by CJNusun on 2017/11/23.
 * 描述:容器启动加载类
 */

public class CreateUserListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        //本方法用于监控容器启动，可以进行一些操作
        System.out.println("容器启动了");

    }
}
